<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Group_model extends CI_Model
{
	
	public function __construct()
	{
		parent::__construct();
		$data=array();

	} 	
		
	public function create_user_type($insert)
	{
		$this->db->insert('user_type',$insert);
	}
	
	public function create_department($insert)
	{
		$this->db->insert('department',$insert);
	}
	
	public function add_group($name,$additional_data){
		
		$data = array(
			    'name'   => $name
		 );
		$this->db->insert('group',$data);
			
	}
		
	public function get_group(){
		
		$query = $this->db->get('group');

		return $query;
	}	


	public function get_accgroups(){
		echo "i am here";exit;
		$query = $this->db->get('acc_group');
	return $query;

		
		
		} 



}
